Repository navigation
Run the generator heaviest-term bound last and by default; time-limit its LPs - #68
Merged
Merged
Conversation
… its LPs The generator heaviest-term bound now runs after the best generator is verified, aiming at its entropy with the remaining budget, and is on by default (joints up to 14 causal states with a budget; 7 states and 2,000 boxes without one). On the 106 open C_g brackets of the binary 2-/3-state dataset, 900 s per process raised the lower bound on 48 and closed 9. Each generator-cap LP inside the bound now gets the time left before the deadline: a single degenerate HiGHS solve previously overran a 900 s deadline by more than half an hour. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
generative_modelnow runsgenerator_heaviest_term_boundlast, after the best generator is word-verified, aiming at its entropy with the whole remaining budget.generator_heaviest_term=Trueis the new default (it was opt-in and ran mid-pipeline against the upper bound known at that point)._GENERATOR_HEAVIEST_TERM_MAX_DIMS). Without a budget it keeps the old 7-state limit and stops at 2,000 boxes (_GENERATOR_HEAVIEST_TERM_NODES), so unbudgeted test-suite runs stay at their previous durations.generator_heaviest_term_boundpasses the time left beforedeadlineto each generator-cap LP (_HeaviestStatesRelaxation.bound(..., time_limit)). A cut-off LP returns the trivial cap, so the bound stays valid.Why
Sweep over the 106 open
C_gbrackets of the cpfci dataset (binary 2- and 3-state ε-machines, joints 2×2 to 3×11), 900 s per process:n2-t006-d0/d3/d4,n2-t012-d1,n3-t010-d0,n3-t035-d1,n3-t070-d2,n3-t077-d1,n3-t092-d0).n2-t012-d1,n2-t006-d3) have a generator whose heaviest state outweighs the minimal generator's, so no caps on the heaviest weights can certify them; bounding the entropy of the whole decomposition does.n3-t045-d3) overran its 900 s deadline by more than 30 min inside a single HiGHS solve (stack trace:generator_caps.pybound→linprog). With the time-limited LPs it returns at 900 s.Tests
test_generator_heaviest_term_bound_stops_at_its_deadline: 2 s deadline returns within 10 s.test_generator_heaviest_term_bound_closes_a_two_state_bracket(slow): onn2-t006-d0the bound reachesC_g = 0.8551484to within 5e-5 (about 45 s).test_generator_heaviest_term_stage_runs_last_on_open_small_brackets: the stage is the last before the reliability summary, and absent withgenerator_heaviest_term=False.main(212/157/120 s vs 238/146/119 s).Docs (
docs/generators/generative_models.rst) and CHANGELOG updated.Made with Cursor